package cn.wsalix.sale.service;

import cn.anlaser.service.CommonService;
import cn.wsalix.order.entity.Order;
import cn.wsalix.sale.entity.SaleDaily;
import cn.wsalix.sale.form.SaleDailyForm;
import cn.wsalix.sale.repository.SaleDailyRepository;

/**
 * @author jskyme
 * 每次购买成功,新增当日该商品购买数
 */
public interface SaleDailyService extends CommonService<SaleDailyForm,SaleDailyRepository,SaleDaily>{

	void newDay();

	SaleDaily findByCurrDayAndProduct(Long productId);

	void saleCountIncrement(Order order);

}
